package java_enum;

import base.HelloDate;
import com.google.gson.annotations.SerializedName;


public enum Type {
    TXT,
    IMAGE,
    FILE,
    PRODUCT,
    ORDER,
    ORDER_CHECK,
    REFUND,
    REFUND_CHECK,
    FAQ,
    RISK,
    END,
    RUBBISH,
    TIP,
    UNKNOW,
    TRANSFER,
    CHECK_ADDRESS,
    VIDEO,
    LOCATION,
    VOICE,
    CMD,
    DELIVERY,
    PAY,
    PAY_PUSH,
    BALANCE_PUSH,
    COUPON;

    final int GAP = 2;
    Type() {
        value = HelloDate.id;
        HelloDate.id += GAP;
    }
    private int value;

    public int getValue() {
        return value;
    }
    static final int LOOP = 10000;
    class TestEnum {
        Type type;
        int x;
        double y;

        public TestEnum(Type type, int x, double y) {
            this.type = type;
            this.x = x;
            this.y = y;
        }
    }
    public static void main(String[] args) {
        System.out.println("Hello, it's:" + TXT.getValue());
        System.out.println("Hello, it's:" + PAY_PUSH.getValue());


    }
}